<?php

namespace Models;



class VoteOption extends BaseModel
{
    public function initialize()
    {
        $this->hasMany("vid", "Models\Vote", "id",array('alias' => 'vote'));
    }
    public function  notSave()
    {
        $flash=$this->getDI()->getFlash();

        foreach($this->getMessages() as $message)
        {
            $flash->error($message);
        }
    }
}
